package cn.bluethink.eguan.core.entity;

import java.io.Serializable;

import javax.persistence.Column;

import cn.bluethink.eguan.model.core.EgAcount;
import cn.bluethink.eguan.model.core.EgRole;
import cn.bluethink.eguan.model.core.EgUser;

/**
 * 门派成员表关联用户表返回的结果对象
 * 
 * @author 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.1.0
 * @note 修订历史：
 * 1、wanglei于2018/10/17设计并构建初始版本v0.1.0
 */
public class MemberEntity implements Serializable {

    private static final long serialVersionUID = 6670012695570189185L;

    // 门派ID
    private Long fid;
    
    // 用户ID
    private Long uid;

    // 门派中角色
    private Integer role2;
    
    // 门派中权限
    private Integer purview2;
    
    // 成员名称
    @Column(name = "name")
    private String uname;
    
    // 成员图像
    private String avator;
    
    // 成员账户ID
    private Long id;
    
    // 成员金币数量
    private Integer bt;
    
    // 技能点
    private Integer skp;
    
    // 经验值
    private Integer exp;
    
    public EgUser createUser() {
        EgUser user = new EgUser(uid,uname,avator);
        user.setRole(new EgRole(role2, null, purview2));
        user.setAcount(new EgAcount(id, null, bt));
        user.setSkp(skp);
        user.setExp(exp);
        return user;
    }

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getRole2() {
        return role2;
    }

    public void setRole2(Integer role2) {
        this.role2 = role2;
    }

    public Integer getPurview2() {
        return purview2;
    }

    public void setPurview2(Integer purview2) {
        this.purview2 = purview2;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getAvator() {
        return avator;
    }

    public void setAvator(String avator) {
        this.avator = avator;
    }

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getBt() {
		return bt;
	}

	public void setBt(Integer bt) {
		this.bt = bt;
	}

	public Integer getSkp() {
		return skp;
	}

	public void setSkp(Integer skp) {
		this.skp = skp;
	}

	public Integer getExp() {
		return exp;
	}

	public void setExp(Integer exp) {
		this.exp = exp;
	}

}
